package game;

import java.awt.Graphics2D;
import java.awt.Point;

public class Inimigo_01 extends BaseEnemy
{
	
	private static final long serialVersionUID = 1L;
	float time;
	float timeAnimation = 1;
	
	
	public Inimigo_01(int indexImage, Point position, Point size, Point sPos,
			Point recorte, Point rowLine, float time, boolean input, int HP, float speedShoot) 
	{
		super(indexImage, position, size, sPos, recorte, rowLine, time, input, HP, speedShoot);
		// TODO Auto-generated constructor stub
		this.isBomber = true;
		
	}
	
	@Override
	public void Update(Player p)
	{
		
		time += Time.getInstance().getLoopTime();
		automatic = true;

		if(Game.rand.nextInt(1000) > 995)
		{
			ShootManager.getInstance().AddShoot(InstanciarPosTiro(this.getRectangle()), 
			new Point(10, 10), super.speed, this.animationType.y, 10f);
		}
		
		automatic = true;
			
		
		super.Update(p);
	}
	
	@Override
	public void draw(Graphics2D g2d) {
		// TODO Auto-generated method stub
		
		super.draw(g2d);
	}
	
	
	
}